﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class SerStatistic : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        SqlDataReader sdr = DB.reDr("select * from tb_Service where ServiceID=" + this.txtID.Text.Trim());
        sdr.Read();
        if(sdr.HasRows)
        {
            this.txtName.Enabled = true;
            this.gvStatistic.DataSource=sdr;
            this.gvStatistic.DataBind();
        }
        else
        {
            Response.Write("<script>alert('没有查找到记录！');location='SerStatistic.aspx'</script>");
        }
        sdr.Close();
    }
}
